var array = files.listDir("./")
var scripts=[]
for (let index = 0; index < array.length; index++) {
    var  element = array[index];
    if (files.isFile(files.join("./",element )) && files.getExtension(element)=="js") {
        scripts.push(element)
    }
}
var sss= dialogs.select("选择",scripts)
if (sss!=-1) {
    engines.execScriptFile(files.join("./",scripts[sss]))
}